package com.ruoyi.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 product
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品类别 */
    @Excel(name = "商品类别")
    private String pType;

    /** 商品编号 */
    private String pId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String pName;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private Long pPrice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long pQuantity;

    /** 商品照片 */
    @Excel(name = "商品照片")
    private String pImage;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String pDescription;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pTime;

    /** 状态 */
    @Excel(name = "状态")
    private Long pState;

    public void setpType(String pType) 
    {
        this.pType = pType;
    }

    public String getpType() 
    {
        return pType;
    }
    public void setpId(String pId) 
    {
        this.pId = pId;
    }

    public String getpId() 
    {
        return pId;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setpPrice(Long pPrice) 
    {
        this.pPrice = pPrice;
    }

    public Long getpPrice() 
    {
        return pPrice;
    }
    public void setpQuantity(Long pQuantity) 
    {
        this.pQuantity = pQuantity;
    }

    public Long getpQuantity() 
    {
        return pQuantity;
    }
    public void setpImage(String pImage) 
    {
        this.pImage = pImage;
    }

    public String getpImage() 
    {
        return pImage;
    }
    public void setpDescription(String pDescription) 
    {
        this.pDescription = pDescription;
    }

    public String getpDescription() 
    {
        return pDescription;
    }
    public void setpTime(Date pTime) 
    {
        this.pTime = pTime;
    }

    public Date getpTime() 
    {
        return pTime;
    }
    public void setpState(Long pState) 
    {
        this.pState = pState;
    }

    public Long getpState() 
    {
        return pState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pType", getpType())
            .append("pId", getpId())
            .append("pName", getpName())
            .append("pPrice", getpPrice())
            .append("pQuantity", getpQuantity())
            .append("pImage", getpImage())
            .append("pDescription", getpDescription())
            .append("pTime", getpTime())
            .append("pState", getpState())
            .toString();
    }
}
